package cn.cdeden.knowledge.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

@Getter
@AllArgsConstructor
public enum TeamTypeEnum {


    NORMAL_TEAM("普通团队", "0"),

    PROJECT_TEAM("项目团队", "1"),

    OTHER_TEAM("其他团队", "2"),
    ;

    private final String type;
    private final String num;


    public static TreeEnum find(String type) {
        for (TreeEnum value : TreeEnum.values()) {
            if (StringUtils.equalsIgnoreCase(type, value.getType())) {
                return value;
            }
        }
        return null;
    }

}
